package com.example.springboot_system.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @author xgs
 * @date 2019/4/22
 * @description: 挂号记录表
 */
@Data
@TableName("his_register")
public class Register {

    @Column(name = "id")
    private String id;

    @Column(name = "create_datetime")
    private Date createDatetime;

    @Column(name = "patient_id")
    private String patientId;

    @Column(name = "department", nullable = false, length = 32)
    private String department;

    @Column(name = "register_type", nullable = false, length = 10)
    private String registerType;

    @Column(name = "doctor", nullable = false, length = 32)
    private String doctor;

    @Column(name = "doctor_id", nullable = false, length = 255)
    private String doctorId;

    @Column(name = "treatment_price", nullable = false, length = 10)
    private String treatmentPrice;

    @Column(name = "pay_type", nullable = false, length = 10)
    private String payType;

    @Column(name = "operator_name", nullable = false, length = 10)
    private String operatorName;   //操作员

    @Column(name = "operator_email", nullable = false, length = 50)
    private String operatorEmail;   //操作员

    /**
     * 挂号状态。-1:过期，1:挂号成功
     */
    @Column(name = "register_status", nullable = false, length = 2)
    private int registerStatus;

    /**
     * 就诊状态,包括门诊，体检。0:未就诊，1:已就诊
     */
    @Column(name = "treatment_status", nullable = false, length = 2)
    private int treatmentStatus;

    /**
     * 收费状态。0:未收费，1:已收费
     */
    @Column(name = "charge_status", nullable = false, length = 2)
    private int chargeStatus;

    @Column(name = "registered_num", nullable = false, length = 50)
    private String registeredNum;  //挂号编号


}
